<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/fn.tld" prefix="fn" %>
<div title="维护车道配置信息" id="laneConfigSelectDialog" class="dialogtitle">
	<div class="searchbox">
		<span class="fontRed">注:</span>带"<span class="fontRed">*</span>"为必填项
		<form id="frmLaneConfig" onSubmit="return false">
			<input type="hidden" name="id" value="<c:out value='${laneConfig.id }'/>">
			<table id="laneConfigTable" cellspacing="0" cellpadding="0">
				<tr>
   					<td align="right" style="width:114px;">名称：<span class="fontRed">*</span></td>
   					<td><input type="text" id="" name="configname" style="width: 150px; " value="<c:out value='${laneConfig.configname}'/>"/></td> 	
   					<td align="right" style="width: 114px;">是否可通行：<span class="fontRed">*</span></td>
					<td style="width: 230px; ">
						<select id="lstCanVia" name="canvia" style="width: 158px; ">
							<option value="">--请选择--</option>
							<option value="1" ${laneConfig.canvia==1? "selected" : ""}>是</option>
							<option value="0" ${laneConfig.canvia==0? "selected" : ""}>否</option>
						</select>
					</td>						
  				</tr>
  				<tr>
   					<td align="right" style="width:114px;">最高行驶速度：&nbsp;</td>
   					<td><input type="text" id="" name="upperviaspeedlimit"  onkeyup="this.value=this.value.replace(/\D/g,'')" maxlength="3" style="width: 150px; " value="<c:out value='${laneConfig.upperviaspeedlimit}'/>"/>Km/h</td> 	
   					<td align="right" style="width:114px;">最低行驶速度：&nbsp;</td>
   					<td><input type="text" id="" name="lowerviaspeedlimit"  onkeyup="this.value=this.value.replace(/\D/g,'')" maxlength="3" style="width: 150px; " value="<c:out value='${laneConfig.lowerviaspeedlimit}'/>"/>Km/h</td> 							
  				</tr>
  				<tr>
   					<td align="right" style="width:114px;">超速起拍值：&nbsp;</td>
   					<td><input type="text" id="" name="uppercapturespeedlimit"  onkeyup="this.value=this.value.replace(/\D/g,'')" maxlength="3" style="width: 150px; " value="<c:out value='${laneConfig.uppercapturespeedlimit}'/>"/>Km/h</td> 	
   					<td align="right" style="width:114px;">低速起拍值：&nbsp;</td>
   					<td><input type="text" id="" name="lowercapturespeedlimit"  onkeyup="this.value=this.value.replace(/\D/g,'')" maxlength="3"style="width: 150px; " value="<c:out value='${laneConfig.lowercapturespeedlimit}'/>"/>Km/h</td> 							
  				</tr>
  				<tr>
   					<td align="right" style="width: 114px;">开始时间：&nbsp;</td>
					<td style="width: 230px; ">
						<input type="text" id="startTime" name="startTime" class="startTime"  style="width: 150px; readonly="readonly" value="<c:out value=''/>"/>
					</td>					
					<td align="right" style="width: 114px;">结束时间：&nbsp;</td>
					<td style="width: 230px; ">
						<input type="text" id="endTime" name="endTime" class="endTime"  style="width: 150px;  readonly="readonly" value="<c:out value=''/>"/>
					</td>
				</tr>
				<tr>
					<td align="right" style="width: 114px;">机动车分组：<span class="fontRed">*</span></td>
					<td style="width: 230px; ">
						<select id="vehiclegroupid" name="vehiclegroupid" style="width: 160px; ">
							<option value=""></option>
							<c:forEach items="${lstVehicleGroup}" var="vehicleGroup">
								<option value="${vehicleGroup.id }" ${vehicleGroup.id == laneConfig.vehiclegroupid ? "selected" : ""}><c:out value="${vehicleGroup.groupname}"></c:out></option>
							</c:forEach>
						</select>
					</td>
					<td></td>
					<td></td>		
				</tr> 
           	</table>
  		</form>
  		<div id="infoLaneConfig" class="fontRed"></div>
  	</div>
</div>			
<script>
	$("button").button();
	
	 $("#startTime").datetimepicker({
         timeFormat: 'HH:mm',
         stepHour: 1,
         stepMinute: 1,
         onClose: function( selectedDate ) {
 	        $( "#endTime" ).datetimepicker( "option", "minDate", selectedDate );
 	      }
     });
     
	$("#endTime").datetimepicker({
         timeFormat: 'HH:mm',
         stepHour: 1,
         stepMinute: 1,
         onClose: function( selectedDate ) {
 	        $( "#startTime" ).datetimepicker( "option", "maxDate", selectedDate );
 	      }
     });
</script>
				